package com.boot.order;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;
@Data

public class OrderDTO {
    @Positive(message = "产品ID必填")
    private Long productId;
    @Positive(message = "用户ID必填")
    private Long userId;
    @Positive(message = "产品数量必须为正整数")
    private Integer num;
}
